#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;
#include"list.h"
int main()
{
	wdz::list<int> l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	l.push_back(4);

	wdz::list<int>::reverse_iterator it = l.rbegin();
	while (it!=l.rend())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;

	return 0;
}